#ifndef _PWM_H
#define _PWM_H
#include "stdint.h"

#define PWMCH1    1
#define PWMCH2    2
#define PWMCH3    3
#define PWMCH4    4
#define PWMCH5    5
#define PWMCH6    6

typedef struct
{
    int16_t initpwm;
    int16_t actpwm;
    int16_t prepwm;
    int16_t lock;
	int16_t	lockCn;
    int16_t UnLockCn;
}STR_PWM;


extern  STR_PWM     PWM,PWM2;
//////////////////////////////////////////////////////
extern 	void MotorPWM_Init(void);
extern	void CtrPWMST(uint16_t OnOrOff);
extern	void PWMControl(uint8_t pwmr, int16_t pwm);

#endif





